import { post, get, put, _delete } from '@/lin/plugin/axios'

class Project {

    static async getList(page, count) {
        return await get(`/cms/project/page?page=${page}&count=${count}`);
    }

    static async delete(id) {
        return await _delete(`/cms/project/${id}`)
    }

    static async add(data) {
        return await post(`/cms/project`, data)
    }

    static async edit(id, data) {
        return await put(`/cms/project/${id}`, data)
    }

    static async get(id) {
        return await get(`/cms/project/${id}`)
    }

    static async getAll() {
        return await get(`/cms/project/all`)
    }
}

export default Project;